package atguigu.pUtils;

public class ActLine {

    private ActItem start;
    private ActItem end;


    public ActItem getStart() {
        return start;
    }

    public void setStart(ActItem start) {
        this.start = start;
    }

    public ActItem getEnd() {
        return end;
    }

    public void setEnd(ActItem end) {
        this.end = end;
    }

    public void connect(ActItem a, ActItem b) {

        this.setStart(a);
        this.setEnd(b);

        a.addNext(b);
        b.addPre(a);
    }
}
